package com.grf.sm4;

import com.zaxxer.hikari.HikariDataSource;
import lombok.extern.slf4j.Slf4j;

/**
 * @apiNote 数据库工具
 * @author grf
 * @since 2024/9/1
 */
@Slf4j
public class MyHiKariDataSource extends HikariDataSource {

    public String getUsername(){
//        log.info("username：{}", super.getUsername());
        return SM4Utils.decryptStr(super.getUsername());
    }

    public String getPassword(){
//        log.info("password: {}", super.getPassword());
        return SM4Utils.decryptStr(super.getPassword());
    }
}
